package com.anywhere.freightman.car.service;

import com.anywhere.freightman.car.model.CarModel;
import com.anywhere.freightman.car.model.DriverModel;
import com.anywhere.freightman.common.IBaseEntityService;
import com.anywhere.freightman.common.entity.car.DriverEntity;
import com.anywhere.freightman.common.entity.user.DriverQueryEntity;
import com.anywhere.freightman.common.enumeration.DriverStatus;

import java.util.List;

public interface IDriverService extends IBaseEntityService<DriverModel, DriverQueryEntity> {

    DriverModel selectByIdentityNo(String identityNo);

    DriverModel selectByTel(String tel);

    List<DriverModel> getListByCompanyId(Long companyId);

    DriverEntity login(String tel, String password);

    DriverModel selectByWxAppId(String wxAppId);

    List<CarModel> getCarList(Long driverId);

    void remove(long id);

    void cleanWxOpenId(String openId);

    void changeStatus(long driverId, DriverStatus status);

    void updatePwd(long driverId, String oldPwd, String newPwd);

}
